package com.example.siyun.controller.shouyecontroller;

import com.example.siyun.service.shouyeservice.KsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Slf4j
@RestController
public class KsController {
    @Autowired
    private KsService ksService;
    @RequestMapping("/getks")
    public Map<String,Object> getks(){
        Map aa=new HashMap();
        List<String> xx = ksService.getKsX();
        List<Integer> yy = ksService.getKsY();
        aa.put("xx",xx);
        aa.put("yy",yy);
        return aa;
    }
}
